"""Lists of package_groups to be used externally as visibilities in BUILD files targets."""

# Visibility labels lists
PLUGIN_PACKAGES_VISIBILITY = ["//visibility:public"]
G3PLUGINS_VISIBILITY = ["//visibility:public"]
INTELLIJ_PLUGINS_VISIBILITY = ["//visibility:public"]
DEFAULT_TEST_VISIBILITY = ["//visibility:public"]

ASPECT_PROTO_VISIBILITY = None

BAZEL_PLUGIN_SUBPACKAGES = ["//:__subpackages__"]

JAVASCRIPT_PACKAGES_VISIBILITY = None

PYTHON_PACKAGES_VISIBILITY = ["//visibility:public"]

SKYLARK_PACKAGES_VISIBILITY = ["//visibility:public"]

COMMON_PLUGINS_VISIBILITY = ["//visibility:public"]

SDK_COMPAT_VISIBILITY = ["//visibility:public"]

SERVICES_EXPERIMENT_SUBPACKAGES = None

def create_plugin_packages_group(name = None):
    native.package_group(
        name = "plugin_packages",
        packages = [
            "//...",
        ],
    )

def create_proto_visibility_group(name = None):
    # This group is not needed externally
    pass

def create_common_plugins_package(name = None):
    native.package_group(
        name = "common_plugins",
        packages = [
            "//...",
        ],
    )

def create_sdkcompat_visibility_package(name = None):
    # This group is not needed externally
    pass

def create_test_libs_visibility_package(name = None):
    native.package_group(
        name = "test_libs_visibility",
        packages = [
            "//...",
        ],
    )
